//
//  UserDataModel.h
//  CoolTennisBall
//
//  Created by Coollang on 16/9/9.
//  Copyright © 2016年 CoolLang. All rights reserved.
//

#import <Foundation/Foundation.h>



@class UserMonthDataModel,UserBestListModel,UserBestDataModel;
@interface UserDataModel : NSObject

@property (nonatomic, copy)NSString *TotalDuration;/** 总时间 */
@property (nonatomic, copy)NSString *TotalCount;/** 总拍数 */

@property (nonatomic, strong) NSArray *yearMonthList; //年月对应的柱状图列表
@property (nonatomic, strong) NSArray *bestList; //最佳列表

@property (nonatomic, copy)NSDictionary *AvgList;
@property (nonatomic, strong) NSDictionary *UserInfo;//头像 昵称 地址

- (void)parseUserDataDictionary:(NSDictionary *)dictionary;

@end


@interface UserMonthDataModel : NSObject

@property (nonatomic, copy)NSString *year;// 年

@property (nonatomic, assign)NSInteger JanNum; //一月击球数
@property (nonatomic, assign)NSInteger FebNum;
@property (nonatomic, assign)NSInteger MarNum;
@property (nonatomic, assign)NSInteger AprNum;
@property (nonatomic, assign)NSInteger MayNum;
@property (nonatomic, assign)NSInteger JuneNum;
@property (nonatomic, assign)NSInteger JulyNum;
@property (nonatomic, assign)NSInteger AugNum;
@property (nonatomic, assign)NSInteger SepNum;
@property (nonatomic, assign)NSInteger OctNum;
@property (nonatomic, assign)NSInteger NovNum;
@property (nonatomic, assign)NSInteger DecNum;

@property (nonatomic, strong) NSArray <NSNumber *>*yearMonthDatas;

/** [0- 1]的数值*/
@property (nonatomic, strong)NSArray <NSNumber *>*barYValus;

- (instancetype)initWithYear:(NSString *)yearStr withDict:(NSDictionary *)dict;
// 计算虚线的值
- (NSArray <NSString *>*)dashLineTargetValue;

- (NSInteger)maxYValue;


@end

@interface UserBestListModel : NSObject

- (instancetype)initWithBestTime:(NSString *)timeStr withArray:(NSArray *)array;
@property (nonatomic, copy)NSString *bestTime; // 时间2016-06-20
@property (nonatomic, strong) NSMutableArray *bestDataList;

@end

@interface UserBestDataModel : NSObject

@property (nonatomic, copy)NSString *bestDataName;// 最佳数据的名称
@property (nonatomic, copy)NSString *bestValueStr;/** 最佳值 */
@property (nonatomic, copy)NSString *bestTime; // 时间2016-06-20
@property (nonatomic, copy)NSString *unitString; // 单位

@end


